<%@ page contentType="text/html;charset=UTF-8" language="java" import=" com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/vendorList.do"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<SCRIPT language="JavaScript">
	function searchVendor(theForm)
	{
	    theForm.action.value = "SearchVendor";
	    theForm.submit();
	}
</SCRIPT>

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@ include file="/jsp/operations/operations_menu.jsp" %>

	</TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->

<center><span class="NArialW">Vendor Details</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>

<html:form name="vendor_list" method="post" action="/vendorList" scope="request" type="com.scalar.chiptrack.operations.vendor.forms.VendorListForm" onsubmit="javascript:searchVendor(document.vendor_list);">
<table border="0" width="90%" align=right>
  <tr><td>
 <!--added by swadesh sahoo-->
 <chiptrack:info styleClass="NArialL" /></td></tr>
  <tr><td><chiptrack:errors styleClass="NArialL" /></td></tr>

 <tr><td>

  <table border="0" width="100%" align=right>
    <tr>
      <td width="15%"><font class="NArialL">Vendor Name</font></td>
      <td width="20%"><font class="NArialL">
      	<html:text property="vendorName" size="23" styleClass="txfield" /></td>
      <td width="5%">&nbsp;</td>
      <td width="15%" colspan=3>&nbsp;</td>
    </tr>
    <tr><td colsapn=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
    <tr>
      <td colspan=3 align=center>
  	  <html:link href="javascript:searchVendor(document.vendor_list);">
	    <img border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" width="53" height="17"  onMouseover="window.status='Click to Search for Vendors List';return true" onMouseout="window.status='';return true" title="Click here to Search for Vendors List">
	  </html:link>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  <a href="javascript:document.vendor_list.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17"onMouseover="window.status='Click to Reset';return true" onMouseout="window.status='';return true" title="Click here to Reset"></a>
      </td>
    </tr>
  </table>
  </td></tr>
  <tr><td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
  <tr><td>

  	<table border="0" width="100%" bordercolor="#FFFFFF" align=right>

	   <tr><td class="NArialL" colspan=4>To add a new vendor, please <html:link page="/vendor.do?action=CreateVendor" onmouseover="window.status='Click to Add New Vendor';return true" onmouseout="window.status='';return true">click here</html:link></td></tr>
       <logic:equal name="showList" value="TRUE">
	   <tr><td class="NArialL" colspan=4><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
           <tr>
             <td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Vendor Name</font></td>
             <td width="17%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Vendor No</font></td>
             <td width="17%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Actions</font></font></td>
             <td width="10%" align="center">&nbsp;</td>
           </tr>
          <% int bgcount = 0;%>
	  <logic:iterate id="Vendor" name="vendorlist">
          <% bgcount = bgcount + 1; %>
	    <tr>
	     <td width="15%" align="center" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>><font class="NArialL"><bean:write name="Vendor" property="vendorName" /></font></td>
	     <td width="17%" align="center" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>><font class="NArialL"><bean:write name="Vendor" property="vendorNumber" /></font></td>
	     <td width="17%" align="center" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>><font class="NArialL">
                <logic:equal name="showModify" value="TRUE">
                    <chiptrack:linkVendor page="/vendor.do?action=EditVendor"  onmouseover="window.status='Click to Modify Vendor Details';return true" onmouseout="window.status='';return true">Modify</chiptrack:linkVendor>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </logic:equal>
                <logic:equal name="showDelete" value="TRUE">
                    <!--swadesh sahoo commented-->
              <!--chiptrack:linkVendor page="/vendorList.do?action=DeleteVendor">Delete<!--/chiptrack:linkVendor-->
                <!-- Modified by Swadesh Sahoo on 4th of Feb 2004 -->
                <chiptrack:linkVendor page="/vendor.do?action=ViewVendor&flag=True" onmouseover="window.status='Click to Delete Vendor';return true" onmouseout="window.status='';return true">Delete</chiptrack:linkVendor>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </logic:equal>
		<chiptrack:linkVendor page="/vendor.do?action=ViewVendor" onmouseover="window.status='Click to View Vendor Details';return true" onmouseout="window.status='';return true">View</chiptrack:linkVendor>
		</font>
	      </td>
	    </tr>

		<!--
	   <tr>
	     <td width="15%" align="center" bgcolor="#DEE1E2"><font class="NArialL">IBM Microelectronics</font></td>
	     <td width="17%" align="center" bgcolor="#DEE1E2"><font class="NArialL">29289</font></td>
	     <td width="17%" align="center" bgcolor="#DEE1E2"><font class="NArialL">
		<A HREF="vendor_setup.html">Modify </A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#">Delete</A>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="vendor_setup.html">View</A>
		</font></td>
	    </tr>
	    -->

	  </logic:iterate>

          </logic:equal>

          </table>

     </td></tr>
  </table>
  <input type="hidden" name="action" value="">
</html:form>


<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
